import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isPlay : true,
    url: '',
    id : '',
    over: false,
    upload:'/api/admin/common/upload'
  },
  getters: {
    isPlay : state => state.isPlay,
    url: state => state.url,
    id : state => state.id,
    over: state => state.over,
    upload : state => state.upload
  },
  mutations: {
    setIsPlay :( state , isPlay) =>{state.isPlay  = isPlay},
    setUrl : (state , url) =>{ state.url = url},
    setId : (state , id) =>{ state.id = id},
    setOver : (state , over) => { state.over = over}
  },
  actions: {
  },
  modules: {
  }
})
